<template>
  <div class="big">
    <div>
      <!--导航栏-->
      <NavigationBar></NavigationBar>
      <!--内容-->
      <div>
        <div class="secon">商品类别管理&emsp;/&emsp;<b>商品类别添加</b></div>
        <div class="cont">
          <div class="conta">
            <!--            -->
            <div class="list">
              <div class="lista">类别<el-input v-model="input" placeholder="请输入" class="inp"></el-input></div>
            </div>
            <!--            -->
            <div class="listb">
              <el-button type="warning">添加</el-button>
              <el-button type="danger" @click="Category_exit">取消</el-button>
            </div>
            <!--            -->
          </div>
        </div>
      </div>

    </div>
  </div>
</template>

<script>
import NavigationBar from "../../../components/NavigationBar";

export default {
  // 组件封装
  components: {
    'NavigationBar': NavigationBar
  },
  data(){
    return{
      input: "",
      activeIndex: 'category',
      currentPage1: 5,
    }
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    },
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
    Category_exit(){
      this.$router.push('/category')
    }
  }
}
</script>

<style scoped>
.big{
  background-color: #F7F8FA;
  height: 100%;
  width: 100%;
}


.secon{
  text-align: center;
  background-color: #ffffff;
  margin: 10px 20px;
  height: 40px;
  line-height: 40px;
}
.cont{
  background-color: #ffffff;
  margin: 10px 20px;
  height: 82.2vh;
}
.inp{
  width: 500px;
  padding-left: 20px;
}
.list{
  padding-bottom: 20px;
  padding-top: 30px;
}
.lista{
  padding-left:20px;
}
.listb{
  padding: 10px 30px;
}








</style>
